package MyBlog.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import MyBlog.biz.AlbumBiz;
import MyBlog.dao.AlbumDao;
import MyBlog.entity.Album;

@Service("albumBiz")
public class AlbumBizImpl implements AlbumBiz {

	@Autowired
	private AlbumDao albumDao;

	@Override
	public List<Album> getAlbumsById(int userId) {
		return albumDao.getAlbumsById(userId);
	}

	@Override
	public Album getAlbumById(int id) {
		return albumDao.getAlbumById(id);
	}

	@Override
	public void add(Album album) {
		albumDao.add(album);
	}

	@Override
	public void update(Album album) {
		albumDao.update(album);
	}
}
